Buggy code:
options . addOption ( "st" , "supportedfilters" , false , "List<seq2seq4repair_space>supported<seq2seq4repair_space>text<seq2seq4repair_space>filters" ) ; try { WpCliConfiguration config = new WpCliConfiguration ( args , options , Main . class ) ; if ( config . hasOption ( "help" ) ) { Main . showHelp ( options ) ; } else if ( ( ( ! ( config . hasOption ( "url" ) ) ) || ( ! ( config . hasOption ( "user" ) ) ) ) || ( ! ( config . hasOption ( "pass" ) ) ) ) { System . err . println ( "Specify<seq2seq4repair_space>--user,<seq2seq4repair_space>--pass<seq2seq4repair_space>and<seq2seq4repair_space>--url" ) ; } else { try { Wordpress wp = new Wordpress ( config . getOptionValue ( "user" ) , config . getOptionValue ( "pass" ) , config . getOptionValue ( "url" ) ) ; if ( config . hasOption ( "authors" ) ) { Main . printList ( wp . getAuthors ( ) , Author . class , true ) ; } else if ( config . hasOption ( "categories" ) ) { Main . printList ( wp . getCategories ( ) , Category . class , true ) ; } else if ( config . hasOption ( "newcategory" ) ) { String slug = config . getOptionValue ( "slug" ) ; Integer parentId = Main . getInteger ( "parentid" , config ) ; if ( slug == null ) slug = "" ; if ( parentId == null ) parentId = 0 ; System . out . println ( wp . newCategory ( config . getOptionValue ( "newcategory" ) , slug , parentId ) ) ; } else if ( config . hasOption ( "pages" ) ) { Main . printList ( wp . getPages ( ) , Page . class , false ) ; } else if ( config . hasOption ( "pagelist" ) ) { Main . printList ( wp . getPageList ( ) , PageDefinition . class , false ) ; } else if ( config . hasOption ( "page" ) ) { Main . printItem ( wp . getPage ( Main . getInteger ( "page" , config ) ) , Page . class ) ; } else if ( config . hasOption ( "userinfo" ) ) { Main . printItem ( wp . getUserInfo ( ) , User . class ) ; } else if ( config . hasOption ( "recentposts" ) ) { Main . printList ( wp . getRecentPosts ( Main . getInteger ( "recentposts" , config ) ) , Page . class , false ) ; } else if ( config . hasOption ( "getpost" ) ) { Main . printItem ( wp . getPost ( Main . getInteger ( "getpost" , config ) ) , Page . class ) ; } else if ( config . hasOption ( "supportedmethods" ) ) { Main . printList ( wp . supportedMethods ( ) , String . class , false ) ; } else if ( config . hasOption ( "supportedfilters" ) ) { Main . printList ( wp . supportedTextFilters ( ) , String . class , false ) ; } else if ( config . hasOption ( "newpage" ) ) { if ( ! ( config . hasOption ( "publish" ) ) ) { Main . showHelp ( options ) ; } else { System . out . println ( wp . newPage ( Page . fromFile ( new File ( config . getOptionValue ( "newpage" ) ) ) , config . getOptionValue ( "publish" ) ) ) ; } } else if ( config . hasOption ( "editpage" ) ) { Main . edit ( options , config , wp , "editpage" , true ) ; } else if ( config . hasOption ( "editpost" ) ) { Main . edit ( options , config , wp , "editpost" , false ) ; } else if ( config . hasOption ( "deletepage" ) ) { Main . delete ( options , config , wp , "deletepage" , true ) ; } else if ( config . hasOption ( "deletepost" ) ) { Main . delete ( options , config , wp , "deletepost" , false ) ; } else if ( config . hasOption ( "newpost" ) ) { if ( ! ( config . hasOption ( "publish" ) ) ) { Main . showHelp ( options ) ; } else { <START_BUG> System . out . println ( wp . newPage ( Page . fromFile ( new File ( config . getOptionValue ( "newpost" ) ) ) , config . getOptionValue ( "publish" ) ) ) ; <END_BUG> } } else { Main . showHelp ( options ) ; } } catch ( MalformedURLException e ) { System . err . println ( ( ( ( "URL<seq2seq4repair_space>\"" + ( config . getOptionValue ( "url" ) ) ) + "\"<seq2seq4repair_space>is<seq2seq4repair_space>invalid,<seq2seq4repair_space>reason<seq2seq4repair_space>is:<seq2seq4repair_space>" ) + ( e . getLocalizedMessage ( ) ) ) ) ; } catch ( IOException e ) { System . err . println ( ( "Can't<seq2seq4repair_space>read<seq2seq4repair_space>from<seq2seq4repair_space>file,<seq2seq4repair_space>reason<seq2seq4repair_space>is:<seq2seq4repair_space>" + ( e . getLocalizedMessage ( ) ) ) ) ; } catch ( InvalidPostFormatException e ) { System . err . println ( "Input<seq2seq4repair_space>format<seq2seq4repair_space>is<seq2seq4repair_space>invalid." ) ; } } } catch ( ParseException e ) { System . err . println ( ( "Can't<seq2seq4repair_space>process<seq2seq4repair_space>command<seq2seq4repair_space>line<seq2seq4repair_space>arguments,<seq2seq4repair_space>reason<seq2seq4repair_space>is:<seq2seq4repair_space>" + ( e . getLocalizedMessage ( ) ) ) ) ; } } catch ( XmlRpcFault e ) { String reason = e . getLocalizedMessage ( ) ; System . err . println ( ( "Operation<seq2seq4repair_space>failed,<seq2seq4repair_space>reason<seq2seq4repair_space>is:<seq2seq4repair_space>" + reason ) ) ; } } private static void delete ( Options options , WpCliConfiguration config , Wordpress wp , String opt , boolean deletePage ) throws XmlRpcFault { } private static void edit ( Options options , WpCliConfiguration config , Wordpress wp , String opt , boolean isPage ) throws IOException , InvalidPostFormatException , XmlRpcFault { } private static Integer getInteger ( String c , WpCliConfiguration config ) { } private static void showHelp ( Options options ) { }

Fix:
System . out . println ( wp . newPost ( Page . fromFile ( new File ( config . getOptionValue ( "newpost" ) ) ) , config . getOptionValue ( "publish" ) ) ) ;