@Override
  protected void addOptions() {
    this.addRequiredOptWithArg("t", "table", "The name of the table");
    this.addRequiredOptWithArg("n", "name", "The name of the created snapshot");
    this.addOptWithArg("s", "snapshot_type", "Snapshot Type. FLUSH is default. Posible values are "
      + Arrays.toString(SnapshotType.values()));
  }
This is a command line class that will snapshot a given table.
hbase-server/src/main/java/org/apache/hadoop/hbase/snapshot/CreateSnapshot.java