Prints out usage information
190603
protected void usage() {
		String footnotes = null;
		if (!getOptions().getCommands().isEmpty()) {
			footnotes = "Use `" + CSLToolContext.current().getToolName() +
					" help <command>' to read about a specific command.";
		}
		
		String name = CSLToolContext.current().getToolName();
		String usageName = getUsageName();
		if (usageName != null && !usageName.isEmpty()) {
			name += " " + usageName;
		}
		
		String unknownArguments = OptionIntrospector.getUnknownArgumentName(
				getClassesToIntrospect());
		
		OptionParser.usage(name, getUsageDescription(), getOptions(),
				unknownArguments, footnotes, new PrintWriter(System.out, true));
	}
364094
private static void usage(PrintStream s) {
    s.println("usage: Client [options] <torrent>");
    s.println();
    s.println("Available options:");
    s.println("  -h,--help                  Show this help and exit.");
    s.println("  -o,--output DIR            Read/write data to directory DIR.");
    s.println("  -i,--iface IFACE           Bind to interface IFACE.");
    s.println("  -s,--seed SECONDS          Time to seed after downloading (default: infinitely).");
    s.println("  -d,--max-download KB/SEC   Max download rate (default: unlimited).");
    s.println("  -u,--max-upload KB/SEC     Max upload rate (default: unlimited).");
    s.println();
  }
1124577
private static void printUsage() {
    String prefix = "Usage: hadoop " + UtilizationShell.class.getSimpleName();
    System.err.println(prefix);
    System.err.println("           [-all]");
    System.err.println("           [-cluster]");
    System.err.println("           [-job]");
    System.err.println("           [-job jobID1 jobID2...]");
    System.err.println("           [-tasktracker]");
    System.err.println("           [-tasktracker hostname1 hostname2...]");
    System.err.println("           [-help [cmd]]");
    System.err.println();
    ToolRunner.printGenericCommandUsage(System.err);
  }
236114
def usage_displayed(is_exit_zero)
      expect_output "foodcritic [cookbook_paths]"

      usage_options.each do |option|
        expect_usage_option(option[:short], option[:long], option[:description])
      end

      if is_exit_zero
        assert_no_error_occurred
      else
        assert_error_occurred
      end
    end
296124
public void printUsage(final OutputStream os) {
        final StringBuilder bldr = new StringBuilder();
        bldr.append("Usage: ");
        bldr.append(getUsage());
        bldr.append("\n");
        bldr.append("Try '--help' for more information.\n");
        PrintWriter pw = new PrintWriter(os);
        pw.write(bldr.toString());
        pw.close();
    }
452157
public void printUsage(PrintWriter pw, int width, String cmdLineSyntax)
    {
        int argPos = cmdLineSyntax.indexOf(' ') + 1;

        printWrapped(pw, width, getSyntaxPrefix().length() + argPos, getSyntaxPrefix() + cmdLineSyntax);
    }
120283
public void printUsage(OutputStream os) {
        int count = 0;
        PrintStream out = UTF8.printStream(os);
        for (String option : optionList) {

            if (optionGroups.containsKey(count)) {
                out.println("  " + optionGroups.get(count));
            }
            count++;

            if (unlistedOptions.contains(option)) {
                continue;
            }
            out.print("    ");

            StringBuilder buf = new StringBuilder();
            buf.append(option);
            if (optionExtraPartSynopsisMap.get(option) != null) {
                String optionExtraPartSynopsis = optionExtraPartSynopsisMap.get(option);
                buf.append("[:");
                buf.append(optionExtraPartSynopsis);
                buf.append("]");
            }
            if (requiresArgumentSet.contains(option)) {
                buf.append(" <");
                buf.append(argumentDescriptionMap.get(option));
                buf.append(">");
            }
            printField(out, buf.toString(), maxWidth + 1);

            out.println(optionDescriptionMap.get(option));
        }
        out.flush();
    }
763749
def usage():
    

    print('Usage:', os.path.basename(sys.argv[0]), '[options] dimacs-file')
    print('Options:')
    print('        -a, --adapt              Try to adapt (simplify) input formula')
    print('        -c, --comp=<string>      Enable one of the MSE18 configurations')
    print('                                 Available values: a, b, none (default = none)')
    print('        -e, --enum=<int>         Number of MaxSAT models to compute')
    print('                                 Available values: [1 .. INT_MAX], all (default = 1)')
    print('        -h, --help               Show this message')
    print('        -i, --incr               Use SAT solver incrementally (only for g3 and g4)')
    print('        -l, --blo                Use BLO and stratification')
    print('        -m, --minimize           Use a heuristic unsatisfiable core minimizer')
    print('        -s, --solver=<string>    SAT solver to use')
    print('                                 Available values: g3, g4, lgl, mcb, mcm, mpl, m22, mc, mgh (default = g3)')
    print('        -t, --trim=<int>         How many times to trim unsatisfiable cores')
    print('                                 Available values: [0 .. INT_MAX] (default = 0)')
    print('        -v, --verbose            Be verbose')
    print('        -x, --exhaust            Exhaust new unsatisfiable cores')
360552
def print_help(self):
        

        print('\n  %s %s' % (self._title or self._name, self._version or ''))

        if self._usage:
            print('\n  %s' % self._usage)
        else:
            cmd = self._name
            if hasattr(self, '_parent') and isinstance(self._parent, Command):
                cmd = '%s %s' % (self._parent._name, cmd)

            if self._command_list:
                usage = 'Usage: %s <command> [option]' % cmd
            else:
                usage = 'Usage: %s [option]' % cmd

            pos = ' '.join(['<%s>' % name for name in self._positional_list])
            print('\n  %s %s' % (usage, pos))

        arglen = max(len(o.name) for o in self._option_list)
        arglen += 2

        self.print_title('\n  Options:\n')
        for o in self._option_list:
            print('    %s %s' % (_pad(o.name, arglen), o.description or ''))
        print('')

        if self._command_list:
            self.print_title('  Commands:\n')
            for cmd in self._command_list:
                if isinstance(cmd, Command):
                    name = _pad(cmd._name, arglen)
                    desc = cmd._description or ''
                    print('    %s %s' % (_pad(name, arglen), desc))

            print('')

        if self._help_footer:
            print(self._help_footer)
            print('')

        return self
615561
private static void showUsage()
    {
	System.out.println("BatchExtractor <pdf-dir-path> <output-dir-path> <parser>");
	System.out.println("BatchExtractor <pdf-dir-path> <output-dir-path> <parser> --debug");
	System.out.println("BatchExtractor <pdf-dir-path> <output-dir-path> <parser> --small");
	System.out.println("\tparser= pdfbox | tet");
    }
542294
private static int printProgress(String str, long received,
      long advertisedSize, int lastPrinted) {
    if (advertisedSize == 0)
      return 0;
    int currentPercent = (int) ((received * 100) / advertisedSize);
    if (currentPercent != lastPrinted)
      FLOG.info("Downloading: " + str + ", completed: " + currentPercent);
    return currentPercent;
  }
1005952
def pretty_memory_info():
    '''
    
    '''
    process = psutil.Process(os.getpid())
    return '{}MB memory usage'.format(int(process.memory_info().rss / 2**20))
1347472
private static void printUsage() {
		System.out.println();
		System.out.println("USAGE");
		System.out.println();
		System.out.println("\t[" + ARGUMENT_PREFIX + ARGUMENT_COMPRESS_FORMAT
				+ " compress_format] [" + ARGUMENT_PREFIX
				+ ARGUMENT_COMPRESS_QUALITY + " compress_quality] ["
				+ ARGUMENT_PREFIX + ARGUMENT_GOOGLE_TILES + "] ["
				+ ARGUMENT_PREFIX + ARGUMENT_BOUNDING_BOX
				+ " minLon,minLat,maxLon,maxLat] [" + ARGUMENT_PREFIX
				+ ARGUMENT_EPSG + " epsg] [" + ARGUMENT_PREFIX
				+ ARGUMENT_URL_EPSG + " url_epsg] [" + ARGUMENT_PREFIX
				+ ARGUMENT_TMS
				+ "] geopackage_file tile_table url min_zoom max_zoom");
		System.out.println();
		System.out.println("DESCRIPTION");
		System.out.println();
		System.out
				.println("\tGenerates tiles into a GeoPackage tile table by requesting them from a URL");
		System.out.println();
		System.out.println("ARGUMENTS");
		System.out.println();
		System.out.println("\t" + ARGUMENT_PREFIX + ARGUMENT_COMPRESS_FORMAT
				+ " compress_format");
		System.out
				.println("\t\tTile compression image format: png, jpg, jpeg (default is no compression, native format)");
		System.out.println();
		System.out.println("\t" + ARGUMENT_PREFIX + ARGUMENT_COMPRESS_QUALITY
				+ " compress_quality");
		System.out
				.println("\t\tTile compression image quality between 0.0 and 1.0 (not valid for png, default is 1.0)");
		System.out.println();
		System.out.println("\t" + ARGUMENT_PREFIX + ARGUMENT_GOOGLE_TILES);
		System.out
				.println("\t\tGenerate tiles in Google tile format (default is GeoPackage format with minimum bounds)");
		System.out.println();
		System.out.println("\t" + ARGUMENT_PREFIX + ARGUMENT_BOUNDING_BOX
				+ " minLon,minLat,maxLon,maxLat");
		System.out
				.println("\t\tOnly tiles overlapping the bounding box are requested (default is the world)");
		System.out.println();
		System.out.println("\t" + ARGUMENT_PREFIX + ARGUMENT_EPSG + " epsg");
		System.out
				.println("\t\tEPSG number of the provided bounding box (default is 4326, WGS 84)");
		System.out.println();
		System.out.println("\t" + ARGUMENT_PREFIX + ARGUMENT_URL_EPSG
				+ " url_epsg");
		System.out
				.println("\t\tEPSG number of the tiles provided by the URL (default is 3857, Web Mercator");
		System.out.println();
		System.out.println("\t" + ARGUMENT_PREFIX + ARGUMENT_TMS);
		System.out
				.println("\t\tRequest URL for x,y,z coordinates is in TMS format (default is standard XYZ)");
		System.out.println();
		System.out.println("\tgeopackage_file");
		System.out
				.println("\t\tpath to the GeoPackage file to create, or existing file to update");
		System.out.println();
		System.out.println("\ttile_table");
		System.out
				.println("\t\ttile table name within the GeoPackage file to create or update");
		System.out.println();
		System.out.println("\turl");
		System.out
				.println("\t\tURL with substitution variables for requesting tiles");
		System.out.println();
		System.out.println("\t\t{z}");
		System.out.println("\t\t\tz URL substitution variable for zoom level");
		System.out.println();
		System.out.println("\t\t{x}");
		System.out.println("\t\t\tx URL substitution variable");
		System.out.println();
		System.out.println("\t\t{y}");
		System.out.println("\t\t\ty URL substitution variable");
		System.out.println();
		System.out.println("\t\t{minLon}");
		System.out.println("\t\t\tMinimum longitude URL substitution variable");
		System.out.println();
		System.out.println("\t\t{minLat}");
		System.out.println("\t\t\tMinimum latitude URL substitution variable");
		System.out.println();
		System.out.println("\t\t{maxLon}");
		System.out.println("\t\t\tMaximum longitude URL substitution variable");
		System.out.println();
		System.out.println("\t\t{maxLat}");
		System.out.println("\t\t\tMaximum latitude URL substitution variable");
		System.out.println();
		System.out.println("\tmin_zoom");
		System.out.println("\t\tMinimum zoom level to request tiles for");
		System.out.println();
		System.out.println("\tmax_zoom");
		System.out.println("\t\tMaximum zoom level to request tiles for");
		System.out.println();
	}
1270207
def print_stats(self, header=True, file=sys.stdout):
        """"""
        if header:
            print("CACHE {:*^18} {:*^18} {:*^18} {:*^18} {:*^18}".format(
                "HIT", "MISS", "LOAD", "STORE", "EVICT"), file=file)
        for s in self.stats():
            print("{name:>5} {HIT_count:>6} ({HIT_byte:>8}B) {MISS_count:>6} ({MISS_byte:>8}B) "
                  "{LOAD_count:>6} ({LOAD_byte:>8}B) {STORE_count:>6} "
                  "({STORE_byte:>8}B) {EVICT_count:>6} ({EVICT_byte:>8}B)".format(
                    HIT_bytes=2342, **s),
                  file=file)
172053
def print_info(self):
        ""
        "           pts/34       2013-06-12 15:04             26396 id=s/34  term=0 exit=0"
#        if self.ut_type not in [6,7]:
#            return
        print("%-10s %-12s %15s %15s %-8s" % (
                    str_from_c(self.ut_user),
                    str_from_c(self.ut_line),
                    time.strftime("%Y-%m-%d %H:%M", time.gmtime(self.ut_tv.tv_sec)),
                    self.ut_pid,
                    str_from_c(self.ut_host) and "(%s)" % str_from_c(self.ut_host) or str_from_c(self.ut_id) and "id=%s" % str_from_c(self.ut_id) or ""))
1277187
def print_usage_table(options={})
      fields = get_usage_fields options[:fields]
      fields, opts =  get_fields_and_options(fields, options)
      render_table(fields, opts, options)
    end
41776
def usage(self):
        ''''''
        retval, stderr, stdout = _pysam_dispatch(
            self.collection,
            self.dispatch,
            is_usage=True,
            catch_stdout=True)
        # some tools write usage to stderr, such as mpileup
        if stderr:
            return stderr
        else:
            return stdout