package cz.hobrasoft.pdfmu;

import net.sourceforge.argparse4j.inf.Namespace;
import net.sourceforge.argparse4j.inf.Subparser;
import net.sourceforge.argparse4j.inf.Subparsers;

/**
 * PDFMU command
 * 
 * A PDFMU command typically manipulates a PDF file.
 * 
 * @author <a href="mailto:filip.bartek@hobrasoft.cz">Filip Bartek</a>
 */
public interface Operation {

    /**
     * Execute the command
     * 
     * @param args Command line arguments
     */
    public void execute(Namespace namespace);
    
    /**
     * Add a command subparser to given subparsers
     * 
     * This subparser should handle the arguments specific to this command.
     * 
     * @param subparsers subparsers object to add the parser to
     * @return the created subparser
     */
    public Subparser addParser(Subparsers subparsers);
}

@@ -191,23 +191,25 @@
 * PDFMU 
-command
+operation
 %0D%0A * %0D%0A 
@@ -218,23 +218,25 @@
 A PDFMU 
-command
+operation
  typical
@@ -405,23 +405,25 @@
 ute the 
-command
+operation
 %0D%0A     *
@@ -554,17 +554,33 @@
 Add 
-a command
+this operation's specific
  sub
@@ -589,16 +589,18 @@
 rser to 
+a 
 given su
@@ -607,16 +607,23 @@
 bparsers
+ object
 %0D%0A     *
@@ -696,15 +696,17 @@
 his 
-command
+operation
 .%0D%0A 

Update comments: operation > command